package duixiang.xuesheng;

/**
 * @author げっしょく
 * @date 2021/7/13
 */
public class Testren {
    public static void main(String[] args) {
        Husband hb = new Husband();
        wife we = new wife();
        hb.setName("张三");
        hb.setId("439587199507304865");
        hb.setChusheng("1995-7-30");
        we.setName("李四");
        we.setId("439587199811164865");
        we.setChusheng("1995-7-30");
        hb.setWe(we);
        we.setHa(hb);
        System.out.println(we.getName()+"的老公是"+we.getHa().getName());
    }
}


class wife {
    private String id;
    private String name;
    private String chusheng;
    Husband ha ;

    public wife() {
    }

    public wife(String id, String name, String chusheng, Husband ha) {
        this.id = id;
        this.name = name;
        this.chusheng = chusheng;
        this.ha = ha;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getChusheng() {
        return chusheng;
    }

    public void setChusheng(String chusheng) {
        this.chusheng = chusheng;
    }

    public Husband getHa() {
        return ha;
    }

    public void setHa(Husband ha) {
        this.ha = ha;
    }
}
